package com.g5.edu.mapper;

import com.g5.edu.model.DfForumInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* <p>
    * 论坛话题信息 Mapper 接口
    * </p>
*
* @author admin
* @since 2021-10-29
*/
@Mapper
public interface DfForumInfoMapper extends BaseMapper<DfForumInfo> {
    /**
     * 获取前几条数据
     * @param num
     * @return
     */
    @Select("select * from df_forum_info limit #{num}")
    List<DfForumInfo> getTopicList(Integer num);
}
